Update comments around spin_trylock() usage for sysctl and xenpf locks.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 15 Apr 2010 10:33:39 +0000 (11:33 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 15 Apr 2010 10:33:39 +0000 (11:33 +0100)
commit86cd882200f54655c553c40341cd8ab3ecf378ad
tree2386ccfe170580b1af61061f05cb44d47ff5610f
parentdcc9060e4a4a7bb6287ca346580529c8d803c780
Update comments around spin_trylock() usage for sysctl and xenpf locks.

Since the execution of stop_machine_run() via cpu_down() is now always
deferred to a hypercall continuation context, the above locks are not
held at that time. Hence the trylock is not specifically to avoid
deadlock with stop_machine_run(), but rather a more general paranoia
about deadlocks in general.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/platform_hypercall.c
xen/common/sysctl.c